package com.winz.cultureapp.entity;

import java.util.List;

/**
 * 座位列表
 */

public class SeatListBean {


    /**
     * code : 0
     * msg : success
     * count : 32
     * totalPage : 0
     * data : {"list":[{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1129,"rowNum":1,"colNum":1,"seatDesc":"1排1座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1130,"rowNum":1,"colNum":2,"seatDesc":"1排2座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1131,"rowNum":1,"colNum":3,"seatDesc":"1排3座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1132,"rowNum":1,"colNum":4,"seatDesc":"1排4座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1133,"rowNum":1,"colNum":5,"seatDesc":"1排5座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1134,"rowNum":1,"colNum":6,"seatDesc":"1排6座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1135,"rowNum":1,"colNum":7,"seatDesc":"1排7座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1136,"rowNum":1,"colNum":8,"seatDesc":"1排8座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1137,"rowNum":2,"colNum":1,"seatDesc":"2排1座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1138,"rowNum":2,"colNum":2,"seatDesc":"2排2座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1139,"rowNum":2,"colNum":3,"seatDesc":"2排3座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1140,"rowNum":2,"colNum":4,"seatDesc":"2排4座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1141,"rowNum":2,"colNum":5,"seatDesc":"2排5座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1142,"rowNum":2,"colNum":6,"seatDesc":"2排6座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1143,"rowNum":2,"colNum":7,"seatDesc":"2排7座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1144,"rowNum":2,"colNum":8,"seatDesc":"2排8座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1145,"rowNum":3,"colNum":1,"seatDesc":"3排1座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1146,"rowNum":3,"colNum":2,"seatDesc":"3排2座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1147,"rowNum":3,"colNum":3,"seatDesc":"3排3座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1148,"rowNum":3,"colNum":4,"seatDesc":"3排4座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1149,"rowNum":3,"colNum":5,"seatDesc":"3排5座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1150,"rowNum":3,"colNum":6,"seatDesc":"3排6座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1151,"rowNum":3,"colNum":7,"seatDesc":"3排7座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1152,"rowNum":3,"colNum":8,"seatDesc":"3排8座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1153,"rowNum":4,"colNum":1,"seatDesc":"4排1座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1154,"rowNum":4,"colNum":2,"seatDesc":"4排2座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1155,"rowNum":4,"colNum":3,"seatDesc":"4排3座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1156,"rowNum":4,"colNum":4,"seatDesc":"4排4座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1157,"rowNum":4,"colNum":5,"seatDesc":"4排5座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1158,"rowNum":4,"colNum":6,"seatDesc":"4排6座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1159,"rowNum":4,"colNum":7,"seatDesc":"4排7座","seatMoney":0,"activityId":1013,"seatStatus":1},{"createTime":"2019-04-02 17:20:25","updateTime":"2019-04-02 17:20:25","sort":0,"activitySeatId":1160,"rowNum":4,"colNum":8,"seatDesc":"4排8座","seatMoney":0,"activityId":1013,"seatStatus":1}]}
     */

    public int code;
    public String msg;
    public int count;
    public int totalPage;
    public DataBean data;

    public static class DataBean {
        public List<ListBean> list;

        public static class ListBean {
            /**
             * sort : 0
             * activitySeatId : 1129
             * rowNum : 1
             * colNum : 1
             * seatDesc : 1排1座
             * seatMoney : 0
             * activityId : 1013
             * seatStatus : 1
             */

            public int sort;
            public String activitySeatId;
            public int rowNum;
            public int colNum;
            public String seatDesc;
            public int seatMoney;
            public int activityId;
            public int seatStatus; // 座位状态(0不可用1可预订2锁定3已定) //2锁定是指用户选择，开始准备生产订单，3是表示已经支付成功

            public boolean isSel = false; // 表示用户操作时选中

            @Override
            public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((activitySeatId == null) ? 0 : activitySeatId.hashCode());
                return result;
            }

            @Override
            public boolean equals(Object obj) {
                if (this == obj){
                    return true;
                }
                if (obj == null){
                    return false;
                }

                ListBean other = null;
                if(obj instanceof ListBean){
                    other = (ListBean) obj;
                }

                if (activitySeatId == null) {
                    if (other.activitySeatId != null)
                        return false;
                } else if (!activitySeatId.equals(other.activitySeatId))
                    return false;

                return true;
            }
        }
    }
}
